<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
  <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
    <!DOCTYPE html>
    <html lang="zh-CN">

    <head>
      <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
      <meta name="renderer" content="webkit">
      <meta charset="utf-8">
      <title></title>
      <link rel="stylesheet" type="text/css" charset="UTF-8" href="/resource/layui/css/layui.css">
      <link rel="stylesheet" type="text/css" charset="UTF-8" href="/resource/css/font-awesome.min.css">
      <link rel="stylesheet" type="text/css" charset="UTF-8" href="/resource/css/common.css">
      <link rel="stylesheet" type="text/css" charset="UTF-8" href="/resource/css/gloab.css" />
      <link rel="stylesheet" type="text/css" charset="UTF-8" href="/resource/css/detailTemplate.css">
    </head>

    <body>
      <div class="xbzx_detailTemplate">
        <fieldset class="layui-elem-field">
          <legend></legend>
          <div class="layui-field-box">
            <div class="xbzx_detail_cont">
              <dl class="xbzx_dl_list_item">
                <dd class="xbzx_dt_item_desc center">${m.name }</dd>
              </dl>
              <dl class="xbzx_dl_list_item">
                <dd class="xbzx_dt_item_desc">${m.content }</dd>
              </dl>
              <div class="info_box">
	              <dl class="xbzx_dl_list_item">
	                <dt class="xbzx_dt_item_title">发布部门:</dt>
	                <dd class="xbzx_dt_item_desc">${m.department}</dd>
	              </dl>
	              <dl class="xbzx_dl_list_item">
	                <dt class="xbzx_dt_item_title">发布日期:</dt>
	                <dd class="xbzx_dt_item_desc">
	                  ${m.createtime }
	                </dd>
	              </dl>
	              <dl class="xbzx_dl_list_item">
	                <dt class="xbzx_dt_item_title">有效期至:</dt>
	                <dd class="xbzx_dt_item_desc">
	                  ${m.yxqdate }
	                </dd>
	              </dl>
	              <dl class="xbzx_dl_list_item">
	                <dt class="xbzx_dt_item_title">签署人:</dt>
	                <dd class="xbzx_dt_item_desc">
	                  ${m.qsr }
	                </dd>
	              </dl>
              </div>
            </div>
          </div>
        </fieldset>
      </div>
      <script src="/resource/layui/layui.js" charset="utf-8" type="text/javascript"></script>
      <script src="/resource/js/jquery/jquery-1.9.1.js" charset="utf-8" type="text/javascript"></script>
      <script type="text/javascript">
        window.onload = function() {
          layui.config({
            base: '/resource/js/xbzx_modules/' //xbzx模块目录
          }).use('xbzx-cms-common'); //加载公共Js文件入口

          layui.config({
            base: '/resource/js/xbzx_modules/' //xbzx模块目录
          }).use('xbzx-cms-form'); //加载formJs文件入口
        }

        $(function() {
          $('select[name="department"]').val("${m.department}");
          var status = "${m.status}";
          if (status == "启用") {
            $('input[name="status"]').attr("checked", true);
          }

          // 初始化页面列表paddingLeft
//           $('.xbzx_dt_item_title').each(function(i) {
//             var W = parseInt($(this).outerWidth(true)) + 10;
//             $('.xbzx_dl_list_item').eq(i).css('paddingLeft', W + 'px')
//           })
        });
      </script>
    </body>

    </html>